
#ifndef _IROUND_H_
#define _IROUND_H_

#include <BRect>
#include <BPointArray>
#include <BEvent>

namespace BWE
{
	class IRound : public BThing
	{
	public:
		IRound();
		~IRound();

		void createPoints(const BRectf& rect, BPointfArray& points);
		void createLeftTopPoints(const BRectf& rect, BPointfArray& points);
		void createLeftBottomPoints(const BRectf& rect, BPointfArray& points);
		void createRightTopPoints(const BRectf& rect, BPointfArray& points);
		void createRightBottomPoints(const BRectf& rect, BPointfArray& points);
		void createTriangles(const BPointfArray& pointsA, const BPointfArray& pointsB, BPointfArray& points);

		float			halfPI;
		BSizef			widgetSize;
		BSizef			radiusLeftTop;
		BSizef			radiusRightTop;
		BSizef			radiusLeftBottom;
		BSizef			radiusRightBottom;
		BPointf			centerLeftTop;
		BPointf			centerRightTop;
		BPointf			centerRightBottom;
		BPointf			centerLeftBottom;
		BPointfArray	borderPoints;
		BPointfArray	perchPoints;
		BPointfArray	marginPoints;
		BPointfArray	centerPoints;
		BPointfArray	backgroundPoints;
	};
}

#endif
